.social-feed-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: white;
  padding-top: 60px; /* Account for fixed header */
}

.social-feed-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.social-feed-header {
  text-align: center;
  margin-bottom: 30px;
}

.social-feed-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-feed-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Create Post Section */
.create-post-section {
  margin-bottom: 30px;
}

.create-post-prompt {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-post-prompt:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.create-post-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

/* Create Post Modal */
.create-post-modal {
  background: rgba(20, 25, 40, 0.95);
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.create-post-content {
  padding: 20px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
}

.post-text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  color: white;
  font-size: 16px;
  resize: vertical;
  margin-bottom: 20px;
  font-family: inherit;
}

.post-text-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.post-text-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.post-options {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.post-option {
  flex: 1;
  position: relative;
}

.post-option label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.post-option-input,
.post-option-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-size: 14px;
}

.post-option-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.post-option-input:focus,
.post-option-select:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

/* Location Input with Suggestions */
.location-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-input-wrapper .post-option-input {
  flex: 1;
}

.location-suggestions-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.location-suggestions-btn:hover {
  background: rgba(0, 255, 255, 0.2);
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 25, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 5px;
  z-index: 10;
  backdrop-filter: blur(10px);
  max-height: 200px;
  overflow-y: auto;
}

.location-suggestion {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-suggestion:hover {
  background: rgba(0, 255, 255, 0.1);
}

/* Mood Selection */
.mood-selection {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-selection .post-option-select {
  flex: 1;
}

.mood-emoji-display {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.post-photos-section {
  margin-bottom: 20px;
}

.upload-photos-btn {
  margin-bottom: 15px;
}

.upload-photos-label {
  display: inline-block;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.upload-photos-label:hover {
  background: rgba(0, 255, 255, 0.2);
}

.uploaded-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.uploaded-photo {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.uploaded-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-photo span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: rgba(255, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.post-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 255, 255, 0.3);
}

/* Loading State */
.social-feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Social Posts */
.social-feed-posts {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-post {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-post:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
}

.post-timestamp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.post-location {
  font-size: 12px;
  color: rgba(0, 255, 255, 0.8);
  background: rgba(0, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.post-content {
  margin-bottom: 15px;
}

.post-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  white-space: pre-wrap;
}

.post-photos {
  display: grid;
  gap: 5px;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

/* Single photo */
.post-photos.single {
  grid-template-columns: 1fr;
  max-width: 500px;
}

/* Two photos */
.post-photos.two {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 200px;
}

/* Three photos - 2 on top, 1 bottom */
.post-photos.three {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 150px 150px;
}

.post-photos.three .post-photo:nth-child(3) {
  grid-column: span 2;
}

/* Four photos - 2x2 grid */
.post-photos.four {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 150px 150px;
}

/* Five photos - 2 on top, 3 bottom */
.post-photos.six {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 150px 150px;
}

/* Six photos - 3x2 grid */
.post-photos.six {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 150px 150px;
}

/* Seven photos - 3 on top, 3 middle, 1 bottom */
.post-photos.nine {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 120px);
}

/* Eight photos - 3x3 grid with one empty spot */
.post-photos.nine {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 120px);
}

/* Nine photos - 3x3 grid */
.post-photos.nine {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 120px);
}

/* More than 9 photos - 3x3 grid with overlay on last */
.post-photos.many {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 120px);
}

.post-photo {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-photo img:hover {
  transform: scale(1.05);
}

/* Special layout for 3 photos - third photo spans full width */
.post-photos.three .post-photo:nth-child(3) {
  grid-column: span 2;
}

/* Special layout for 5 photos - last 2 are smaller */
.post-photos.six .post-photo.small {
  grid-row: span 1;
}

/* Special layout for 7 photos - last 2 are smaller */
.post-photos.nine .post-photo.small {
  grid-row: span 1;
}

/* Overlay for "more photos" */
.post-photo.with-overlay .more-photos-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.post-photo.with-overlay .more-photos-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
}

.more-photos-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  font-size: 48px;
  background: rgba(255, 255, 255, 0.05);
}

.post-mood {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.post-interactions {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.interaction-buttons {
  display: flex;
  gap: 20px;
}

.interaction-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.interaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.interaction-btn.liked {
  color: #ff4336;
  background: rgba(255, 67, 54, 0.1);
}

.post-comments {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.add-comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-input-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
}

.comment-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.comment-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.comment-input-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  gap: 8px;
}

.comment-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.comment-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.emoji-btn, .photo-btn {
  padding: 0;
}

.comment-submit-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.comment-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 255, 255, 0.3);
}

/* Emoji Picker */
.emoji-picker {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(20, 25, 40, 0.95);
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.emoji-item {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
  transition: background-color 0.2s;
}

.emoji-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Comment Photos Preview */
.comment-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.comment-photo-preview {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.comment-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-comment-photo-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-comment-photo-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Comment Photos in Display */
.comment-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.comment-photo {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.comment-photo:hover {
  transform: scale(1.05);
}

.comments-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-style: italic;
}

/* Comments List */
.comments-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item.current-user {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 5px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.current-user-name {
  color: #00ffff;
}

.comment-timestamp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.comment-text {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  word-wrap: break-word;
}

/* No Posts State */
.no-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
}

.no-posts-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.no-posts p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-feed-content {
    padding: 15px;
  }
  
  .social-feed-title {
    font-size: 2rem;
  }
  
  .post-options {
    flex-direction: column;
    gap: 15px;
  }
  
  .post-photos.two,
  .post-photos.three,
  .post-photos.four,
  .post-photos.six,
  .post-photos.nine,
  .post-photos.many {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .post-photos.three .post-photo:nth-child(3) {
    grid-column: span 1;
  }
  
  .post-photo img {
    height: 200px;
  }
  
  .interaction-buttons {
    justify-content: space-around;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .cancel-btn,
  .post-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .social-feed-title {
    font-size: 1.8rem;
  }
  
  .post-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .post-author-info {
    width: 100%;
  }
  
  .post-location {
    align-self: flex-start;
  }
}